import { useLocation, useMatch } from 'react-router-dom'

export default function RequireAuth({
  children,
}: {
  children: JSX.Element
}): JSX.Element {
  const loction = useLocation()
  const router = useMatch(loction.pathname)
  console.log(router, 'router')
  return <>{children}</>
}
